# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=py3-dkimpy
pkgver=1.1.5
pkgrel=0
pkgdesc="DKIM, ARC, and TLSRPT email signing and verification"
url="https://launchpad.net/dkimpy/"
arch="noarch"
license="Zlib"
depends="python3 py3-aiodns py3-dnspython py3-authres py3-pynacl"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc $pkgname-doc"
source="https://launchpad.net/dkimpy/1.1/$pkgver/+download/dkimpy-$pkgver.tar.gz"
builddir="$srcdir/dkimpy-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m unittest
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
650476a54cb39d72fefe05a6fdd8167694cd6f1cf521efb7807713ccfa868dd5458732ee8501c4edea203f9726689c9632a92473698ee31889208d19891b7a13  dkimpy-1.1.5.tar.gz
"
